package com.ziqing.apeletnews.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;

import com.ziqing.apeletnews.R;
import com.ziqing.apeletnews.base.BaseActivity;
import com.ziqing.apeletnews.baseMvp.BasePresenter;

/**
 * Created by YYJ on 2018/4/28.
 */

public class InviteFriendActivity extends BaseActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_invite_friend);
        setTitle("邀好友，得猿币");
        setUpToolbar(R.drawable.icon_back);
        setRightToolbar(R.drawable.icon_edit_pen);
    }

    @Override
    protected BasePresenter createPresenter() {
        return null;
    }

    public void setRightToolbar(int backDra){
        ImageView iv_right = findViewById(R.id.iv_right);
        iv_right.setImageResource(backDra);
        iv_right.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(InviteFriendActivity.this,InputInviteCodeActivity.class));
            }
        });
    }
}
